﻿using IMES.Common.Dtos;
using MediatR;
using MySqlX.XDevAPI.Common;
using System.ComponentModel.DataAnnotations;
using Result = IMES.Common.Dtos.Result;

namespace Darius.API.Application.Commands
{
    public class RoleCreateCommand:IRequest<Result>
    {
        [Key]
        public int RoleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public int StartUp { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int Pid { get; set; }
    }
}
